import { $http } from '@escook/request-miniprogram'

$http.baseUrl = 'http://iwenwiki.com'

// 请求拦截器
$http.beforeRequest = function (options){
	uni.showLoading({
	    title: '数据加载中...',
	  })
}


$http.afterRequest = function(){
	uni.hideLoading()
}

export default $http